﻿#ifndef __gcnisa_h__
#define __gcnisa_h__

#define s0     0
#define s1     1
#define s2     2
#define s3     3
#define s4     4
#define s5     5
#define s6     6
#define s7     7
#define s8     8
#define s9     9
#define s10   10
#define s11   11
#define s12   12
#define s13   13
#define s14   14
#define s15   15
#define s16   16
#define s17   17
#define s18   18
#define s19   19
#define s20   20
#define s21   21
#define s22   22
#define s23   23
#define s24   24
#define s25   25
#define s26   26
#define s27   27
#define s28   28
#define s29   29
#define s30   30
#define s31   31
#define s32   32
#define s33   33
#define s34   34
#define s35   35
#define s36   36
#define s37   37
#define s38   38
#define s39   39
#define s40   40
#define s41   41
#define s42   42
#define s43   43
#define s44   44
#define s45   45
#define s46   46
#define s47   47
#define s48   48
#define s49   49
#define s50   50
#define s51   51
#define s52   52
#define s53   53
#define s54   54
#define s55   55
#define s56   56
#define s57   57
#define s58   58
#define s59   59
#define s60   60
#define s61   61
#define s62   62
#define s63   63
#define s64   64
#define s65   65
#define s66   66
#define s67   67
#define s68   68
#define s69   69
#define s70   70
#define s71   71
#define s72   72
#define s73   73
#define s74   74
#define s75   75
#define s76   76
#define s77   77
#define s78   78
#define s79   79
#define s80   80
#define s81   81
#define s82   82
#define s83   83
#define s84   84
#define s85   85
#define s86   86
#define s87   87
#define s88   88
#define s89   89
#define s90   90
#define s91   91
#define s92   92
#define s93   93
#define s94   94
#define s95   95
#define s96   96
#define s97   97
#define s98   98
#define s99   99
#define s100 100
#define s101 101

#define vcc      106u
#define vcc_lo   106u
#define vcc_hi   107u
#define m0       124u
#define exec     126u
#define exec_lo  126u
#define exec_hi  127u
#define zero     128u
#define fhalf    240u
#define nfhalf   241u
#define fone     242u
#define nfone    243u
#define f2       244u
#define nf2      245u
#define f4       246u
#define nf4      247u
#define dpp      250u
#define vccz     251u
#define execz    252u
#define scc      253u
#define LDS      254u
#define lit      255u

#define v0   256
#define v1   257
#define v2   258
#define v3   259
#define v4   260
#define v5   261
#define v6   262
#define v7   263
#define v8   264
#define v9   265
#define v10  266
#define v11  267
#define v12  268
#define v13  269
#define v14  270
#define v15  271
#define v16  272
#define v17  273
#define v18  274
#define v19  275
#define v20  276
#define v21  277
#define v22  278
#define v23  279
#define v24  280
#define v25  281
#define v26  282
#define v27  283
#define v28  284
#define v29  285
#define v30  286
#define v31  287
#define v32  288
#define v33  289
#define v34  290
#define v35  291
#define v36  292
#define v37  293
#define v38  294
#define v39  295
#define v40  296
#define v41  297
#define v42  298
#define v43  299
#define v44  300
#define v45  301
#define v46  302
#define v47  303
#define v48  304
#define v49  305
#define v50  306
#define v51  307
#define v52  308
#define v53  309
#define v54  310
#define v55  311
#define v56  312
#define v57  313
#define v58  314
#define v59  315
#define v60  316
#define v61  317
#define v62  318
#define v63  319
#define v64  320
#define v65  321
#define v66  322
#define v67  323
#define v68  324
#define v69  325
#define v70  326
#define v71  327
#define v72  328
#define v73  329
#define v74  330
#define v75  331
#define v76  332
#define v77  333
#define v78  334
#define v79  335
#define v80  336
#define v81  337
#define v82  338
#define v83  339
#define v84  340
#define v85  341
#define v86  342
#define v87  343
#define v88  344
#define v89  345
#define v90  346
#define v91  347
#define v92  348
#define v93  349
#define v94  350
#define v95  351
#define v96  352
#define v97  353
#define v98  354
#define v99  355
#define v100 356
#define v101 357
#define v102 358
#define v103 359
#define v104 360
#define v105 361
#define v106 362
#define v107 363
#define v108 364
#define v109 365
#define v110 366
#define v111 367
#define v112 368
#define v113 369
#define v114 370
#define v115 371
#define v116 372
#define v117 373
#define v118 374
#define v119 375
#define v120 376
#define v121 377
#define v122 378
#define v123 379
#define v124 380
#define v125 381
#define v126 382
#define v127 383
#define v128 384
#define v129 385
#define v130 386
#define v131 387
#define v132 388
#define v133 389
#define v134 390
#define v135 391
#define v136 392
#define v137 393
#define v138 394
#define v139 395
#define v140 396
#define v141 397
#define v142 398
#define v143 399
#define v144 400
#define v145 401
#define v146 402
#define v147 403
#define v148 404
#define v149 405
#define v150 406
#define v151 407
#define v152 408
#define v153 409
#define v154 410
#define v155 411
#define v156 412
#define v157 413
#define v158 414
#define v159 415
#define v160 416
#define v161 417
#define v162 418
#define v163 419
#define v164 420
#define v165 421
#define v166 422
#define v167 423
#define v168 424
#define v169 425
#define v170 426
#define v171 427
#define v172 428
#define v173 429
#define v174 430
#define v175 431
#define v176 432
#define v177 433
#define v178 434
#define v179 435
#define v180 436
#define v181 437
#define v182 438
#define v183 439
#define v184 440
#define v185 441
#define v186 442
#define v187 443
#define v188 444
#define v189 445
#define v190 446
#define v191 447
#define v192 448
#define v193 449
#define v194 450
#define v195 451
#define v196 452
#define v197 453
#define v198 454
#define v199 455
#define v200 456
#define v201 457
#define v202 458
#define v203 459
#define v204 460
#define v205 461
#define v206 462
#define v207 463
#define v208 464
#define v209 465
#define v210 466
#define v211 467
#define v212 468
#define v213 469
#define v214 470
#define v215 471
#define v216 472
#define v217 473
#define v218 474
#define v219 475
#define v220 476
#define v221 477
#define v222 478
#define v223 479
#define v224 480
#define v225 481
#define v226 482
#define v227 483
#define v228 484
#define v229 485
#define v230 486
#define v231 487
#define v232 488
#define v233 489
#define v234 490
#define v235 491
#define v236 492
#define v237 493
#define v238 494
#define v239 495
#define v240 496
#define v241 497
#define v242 498
#define v243 499
#define v244 500
#define v245 501
#define v246 502
#define v247 503
#define v248 504
#define v249 505
#define v250 506
#define v251 507
#define v252 508
#define v253 509
#define v254 510
#define v255 511

#define local_id                  v0
#define ic(n)                     ((unsigned int)((n)>=0?(128+(n)):(192-(n))))
#define DPP(src,ctrl,bc,regb,rob) (((rob)<<28)|((regb)<<24)|((bc)<<19)|((ctrl)<<8)|(src-256))
#define neg(n)                    ((n)|0x200)
#define vop_negmask(a,b,c)        ((((c)&0x200)<<22)|(((b)&0x200)<<21)|(((a)&0x200)<<20))

#include"../cast.h"
#include"cmpop.h"
#include"sop1.h"
#include"sop2.h"
#include"sopk.h"
#include"sopp.h"
#include"sopc.h"
#include"smem.h"
#include"vop1.h"
#include"vop2.h"
#include"vopc.h"
#include"vop3.h"
#include"vopp.h"
#include"lds.h"
#include"vmem.h"

#endif
